<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="css/company.css" />
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
   <script type="text/javascript">
      $(document).ready(function () {
         var pid = $("#pid").text();
         var uid = $("#uid").text();
         if (uid==""){
            $("[name=uptable]").empty();
            $("<div name='apply' class='divJob_2_1'>立即申请</div>").appendTo("[name=uptable]");
         }
         else {
            $.get("/finduptable", {"uid": uid, "pid": pid}, function (mess) {
                       var b = JSON.parse(mess);
                       $("[name=uptable]").empty();
                       if (b) {
                          $("<div  class='ysqbtn'>已申请</div>").appendTo("[name=uptable]");
                       } else {
                          $("<div name='apply' class='divJob_2_1'>立即申请</div>").appendTo("[name=uptable]");
                       }

                    }
            );
         }

         $(document).on("click","[name=apply]",function () {
            if (uid==""){
               location.href="/log"
            }
            else {
               $.get("/adduptable",{"uid":uid,"pid":pid},function (mess) {
                  var b=JSON.parse(mess);
                  if (b){
                     alert("申请成功");
                     $("[name=uptable]").empty();
                     $("<div  class='ysqbtn'>已申请</div>").appendTo("[name=uptable]");
                  }
                  else {
                     alert("申请失败");
                  }
               })
            }
         })
         $("[name=pid]").click(function () {
            var pid = $("#pid").text();
            location.href = "/company?pid=" + pid;
         });
         $(document).on("click", "a[name=apply]", function () {
            $.get("adduptable", {"uid": uid, "pid": pid}, function (mess) {
               var b = JSON.parse(mess);
               if (b) {
                  alert("申请成功");
               } else {
                  alert("申请失败");
               }

            })
         });


      } );

   </script>



<title>职位信息</title>
</head>

<body>

<h1 type="hidden"  id="pid" th:text="${post.pid}"></h1>
<h1 type="hidden"  id="uid" th:text="${uid}"></h1>

<div class="compHeader">
  <div class="main">
     <div class="header_l">
        <a href="index.html">
           <img src="images/logo_1.png" />
           <img src="images/logo_2.png" />
        </a>
        <span>www.xxx.com</span>
     </div>
   <!--  <div class="header_c">
        <input name="" type="text" placeholder="请输入关键字..." class="keyword"/>
        <input name="" type="button" class="btnsearch"/>
     </div>-->
     <div class="header_r">
     </div>
  </div>
</div>

<div class="jobtypeBox">
   <div class="DivLeft">
      <div class="DivCompany">
         <div class="DivCompany_img"><img src="images/company.gif" width="180"/></div>
         <h1 ><a name="pid" th:text="${enterprise.ename}"  ></a><img src="images/16.png" /></h1>
         <div class="clear"></div>
         <div class="DivLeft_2">
            <p th:text="'行业：'+${enterprise.industry}" ></p>
            <p  th:text="'性质：'+${enterprise.nature}" >性质：私营企业</p>
            <p th:text="'规模：'+${enterprise.scale}" >规模：少于50人</p>
            <p th:text="'企业主页：'+${enterprise.homepage}" ></p>
            <p th:text="'详细地址：'+${enterprise.Full_address}" ></p>
            <p th:text="'介绍：'+${enterprise.introduce}" ></p>
         </div>
         <div class="clear"></div>
      </div>
   </div>
   <div class="DivRight">
      <div class="DivRight_2">
         <div class="divJob_1">
            <div class="divJob_l">
               <div class="tit">
                  <h2 th:text="${post.pname}" >工程安装人员</h2>
                  <div class="clear"></div>
               </div>
               <div class="bqbox">
                  <label>年终奖</label>
                  <label>节日福利</label>
                  <label>双休</label>
                  <label>8小时工作制</label>
                  <label>带薪年假</label>
                  <label>交通补贴</label>
                  <div class="clear"></div>
               </div>
            <div th:text="'工作地点：'+${post.location}" class="jobsub"></div>
               <div th:text="'职位月薪：'+${post.salary}" class="jobsub"></div>
               <div th:text="'招聘人数：'+${post.amount}" class="jobsub"></div>
               <div th:text="'最低学历：'+${post.Degree}"class="jobsub"></div>
               <div th:text="'年龄要求：'+${post.age}"class="jobsub"></div>
               <div th:text="'工作经验：'+${post.experience}"class="jobsub"></div>
               <div th:text="'招聘方式：'+${post.Recruitment_method}"class="jobsub"></div>
               <div th:text="'刷新日期：'+${post.refresh_time}"class="jobsub"></div>
            </div>
         </div>
         <div class="clear"></div>
         <div name="uptable" class="divJob_2">
            <div name="apply" class="divJob_2_1">立即申请</div>
         </div>
         <div class="clear"></div>
         <div class="divJob_3">
            <b>岗位职责：</b><br />
            <div th:text="${post.duty}" class="con">

            </div>
            <b>岗位要求：</b><br />
            <div th:text="${post.request}" class="con">
                 </div>
         </div>
         <div class="clear"></div>
      </div>
   </div>
</div>

<div class="clear"></div>
<div class="footer">
</div>
</body>
</html>
